Minimization of dfa